import { http } from '@/utils/https'

//轮播图数据
export const getHomeBannerListApi = (data: any) => {
  return http({
    method: 'GET',
    url: '/home/banner',
    data,
  })
}

// 分类
export const getClassifyListApi = (data: any) => {
  return http({
    method: 'GET',
    url: '/home/category/mutli',
    data,
  })
}

// 热门推荐
export const getHotApi = (data: any) => {
  return http({
    method: 'GET',
    url: '/home/hot/mutli',
    data,
  })
}

// 商品列表
export const getGoodsList = (data: any) => {
  return http({
    method: 'GET',
    url: '/home/goods/guessLike',
    data,
  })
}

// 热门推荐
export const getHotPageList = (url: string, data: any) => {
  return http({
    method: 'GET',
    url: url,
    data,
  })
}

// 分类数据
export const getClassifyApi = (data: any) => {
  return http({
    method: 'GET',
    url: '/category/top',
    data,
  })
}
